Spread Silverlight Documentation
Evaluate(Object[]) Method


GrapeCity.CalcEngine.Functions Namespace > CalcXnpvFunction Class > Evaluate Method : Evaluate(Object[]) Method

The args contains 3 items: rate, values, dates.

Rate is the discount rate to apply to the cash flows.

Values is a series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.

Dates is a schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.

Returns the System.Double net present value for a series of cash flows not at regular intervals.
Syntax
'Declaration
 
Public Overloads Overrides Function Evaluate( _
   ByVal args() As System.Object _
) As System.Object
'Usage
 
Dim instance As CalcXnpvFunction
Dim args() As System.Object
Dim value As System.Object
 
value = instance.Evaluate(args)
public override System.object Evaluate( 
   System.object[] args
)

Parameters

args

The args contains 3 items: rate, values, dates.

Rate is the discount rate to apply to the cash flows.

Values is a series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.

Dates is a schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.

Return Value

A System.Double value that indicates the evaluate result.
See Also

Reference

CalcXnpvFunction Class
CalcXnpvFunction Members
Overload List